
var _a, _b;
Object.defineProperty(exports, "__esModule", { value: true });
/**
* @module http.config
* @author: Hjava
* @description: HTTPurl模块配置项
* @since: 2018-07-22 15:25:45
*/
var userData_1 = __webpack_require__(/*! _util/userData */ "./src/core/utils/userData.ts");
var constant_1 = __webpack_require__(/*! _util/constant */ "./src/core/utils/constant.ts");
var HTTPConfig = (_a = {},
    _a[constant_1.ENV.TEST] = {
        routerMap: {
            'host': 'http://api.xm.test.sankuai.com',
            '/file': 'http://api.xm.test.sankuai.com/pan/dl'
        }
    },
    _a[constant_1.ENV.ST] = {
        routerMap: {
            'host': 'http://api.xm.st.sankuai.com',
            '/file': 'http://api.xm.st.sankuai.com/pan/dl'
        }
    },
    _a[constant_1.ENV.ONLINE] = {
        routerMap: {
            'host': 'https://api.neixin.cn',
            '/crinfo': 'https://chatroom.meituan.com',
            '/file': 'https://file.neixin.cn'
        }
    },
    _a);
var HTTPSConfig = (_b = {},
    _b[constant_1.ENV.TEST] = {
        routerMap: {
            'host': 'https://api.xm.test.sankuai.com',
            '/file': 'https://api.xm.test.sankuai.com/pan/dl'
        }
    },
    _b[constant_1.ENV.ST] = {
        routerMap: {
            'host': 'https://api.xm.st.sankuai.com',
            '/file': 'http://api.xm.st.sankuai.com/pan/dl'
        }
    },
    _b[constant_1.ENV.ONLINE] = {
        routerMap: {
            'host': 'https://api.neixin.cn',
            '/crinfo': 'https://chatroom.meituan.com',
            '/file': 'https://file.neixin.cn'
        }
    },
    _b);
function default_1() {
    var useHTTPS = userData_1.default.get('useHTTPS');
    if (useHTTPS !== false) {
        return HTTPSConfig;
    }
    return HTTPConfig;
}
exports.default = default_1;


//# sourceURL=webpack://MTDX/./src/core/http/http.config.ts?